define(function (require) {

    "use strict";

    var $                   = require('jquery'),
        Backbone            = require('backbone'),
			
	var TinTuc = Backbone.Model.extend({
		defaults: {
			cateid: null			
		},
		initialize: function() {
			this.on('all', function(e) { console.log(this.get('name') + " event: " + e); });
		},
		getNewsList: function(model, cateid) {
			if (!_.isEmpty(cateid)) {
				this.fetch();
			}
		},
		urlRoot: "http://localhost:8080/api/loadListNewsData?version={1}&lang=VN&page=1&cateid=6&callback=Ext",
		url: function() {
			var base = this.urlRoot;
			//if (this.isNew()) return base;	 
			return base ;// + "?id=" + encodeURIComponent(this.id);
		}
	});
	
    return {
        TinTuc: TinTuc        
    };
});